package cn.wolfcode.p2p.base.query;

import lombok.Getter;
import lombok.Setter;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

@Setter@Getter
public class QueryObject {
    private Integer currentPage = 1;
    private Integer pageSize= 5;
    private String orderBy;

    public String getOrderBy() {
        return StringUtils.hasLength(this.orderBy)? this.orderBy.trim(): null;
    }
}
